<template>
	<view class="bg">
		<view class="name">
			{{detail.title || ''}}
		</view>
		<view class="time">
			{{detail.create_time || ''}}
		</view>
		<view class="box">
			{{detail.content || ''}}
		</view>
	</view>
</template>

<script>
	import {
		noticeDetail
	} from '@/api/url.js'
	export default {
		data() {
			return {
				form: {
					notice_id: 0
				},
				detail: {}
			}
		},
		onLoad(option) {
			console.log(option.id)
			var that = this
			that.form.notice_id = option.id
			var token = uni.getStorageSync('token')
			noticeDetail(that.form,token).then(res => {
				console.log(res)
				that.detail = res.data.data
			}).catch(err => {
				console.log(err)
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #30324C;
		padding: 47rpx 36rpx;
		box-sizing: border-box;
	}

	.name {
		font-size: 40rpx;
		color: #F5C7A6;
	}

	.time {
		color: #858BA3;
		font-size: 26rpx;
		margin: 36rpx 0 50rpx 0;
	}

	.bg {
		width: 100%;

		.box {
			color: #fff;
			font-size: 30rpx;
		}
	}
</style>